<?php

/**
 * Description of NewsRetriever
 *
 * @author Markus Deutsch <Markus.Deutsch.ITM09@fh-joanneum.at>
 */
class NewsRetriever {
    private $url;
    
    function __construct(){
        $this->url = "http://fh-joanneum.at/aw/home/Info/News_Events/~bse/News/?art=RSS";
    }
    
    public function retrieve(){
        $c = curl_init($this->url);
        curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
        $result = curl_exec($c);
        curl_close($c);
        return $result;
    }
}

?>
